﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace GurLoader.View
{
    [ValueConversion(typeof(Command), typeof(string))]
    public class TaskCommandDescriptionConverter : BaseConverter, IValueConverter
    {
        public TaskCommandDescriptionConverter() : base()
        {
            
        }

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            Command c = value is Command ? (Command) value : Command.Unknown;

            switch (c)
            {
                case Command.SendAlbum:
                    return "Sending album to Imgur";
                case Command.SendImage:
                    return "Sending image to Imgur";
                case Command.SendImages:
                    return "Sending images to Imgur";
                default:
                    return string.Empty;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
